package com.example.controller;

import com.example.service.ChooseBeanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author long
 */
@RestController
public class SpringController {

    @Resource
    private ChooseBeanService chooseBeanServiceImplC;

    @PostMapping("/autowiredChooseBean")
    public String chooseBean() {
        System.out.println(chooseBeanServiceImplC.getBeanName());
        return "success";
    }

}

